package com.ushine.web.component.scheduled.job;

import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

/**
 * @Author: yls
 * @Date 2022/2/18 14:08
 * @Description: 具体的任务实现类 注意需要继承 QuartzJobBean
 * @Version 1.0
 **/
@Slf4j
@Component
public class GeneralJob extends QuartzJobBean {

    /**
     * 功能描述:
     * 〈 具体的执行 〉
     *
     * @param context 上下文
     * @return : void
     * @author : yls
     * @date : 2022/2/18 14:41
     */
    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        log.info("定时任务：{}", getClass());
    }
}